<div id="main">
  <h2><%= t("h2.edit_contcat") %></h2>
  <% form_for [:admin, @contcat], :url => '1313' do |form| %>
    <%= error_messages_for :contcat %>
    <table class="data2 data3" cellspacing="0">
      <tr>
        <th><label><%= Contcat.human_attribute_name("subject") %>:</label></th>
        <td>
          <%=  @contcat.subject %>

        </td>
      </tr>
      <tr>
        <th><%= form.label Contcat.human_attribute_name("company_id") %>：</th>
        <td><%=  @contcat.try(:company).try(:name)%>
        </td>
      </tr>
      <tr>
        <th><label><%= Contcat.human_attribute_name("sender") %>：</label></th>
        <td>
          <%= @contcat.sender %>

        </td>
      </tr>
      <tr>
        <th><label><%= Contcat.human_attribute_name("sent_on") %>：</label></th>
        <td>
          <%=  @contcat.sent_on.to_s(:db)%>

        </td>
      </tr>
      <tr>
        <th><label><%= Contcat.human_attribute_name("content") %>：</label>

        </th>
        <td>
          <%= fckeditor_textarea("contcat", "content", :toolbarSet => "Simple", :width => '382px', :height => "400px") %><span class="note2">&nbsp;必须</span>
        </td>
      </tr>
      <tr>
        <th><label><%= Contcat.human_attribute_name("remark") %>：</label></th>
        <td>
          <%=  @contcat.remark%>
        </td>
      </tr>
    </table>
  <% end %>
  <div class="link-right">
    <%= link_to '返 回', admin_contcats_path, :class=>"link_s"%>
  </div>
</div>